package mesweb.mesweb.service.impl.produce;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import mesweb.mesweb.dto.ProducePlan.DayReportDetailConditionDto;
import mesweb.mesweb.entity.produce.ProduceDayReportDetail;
import mesweb.mesweb.mapper.produce.ProduceDayReportDetailMapper;
import mesweb.mesweb.service.produce.IProduceDayReportDetailService;
import mesweb.mesweb.vo.ProducePlan.DayReportDetailResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 日报工
 * @Author: jeecg-boot
 * @Date:   2021-08-17
 * @Version: V1.0
 */
@Service
public class ProduceDayReportDetailServiceImpl extends ServiceImpl<ProduceDayReportDetailMapper, ProduceDayReportDetail> implements IProduceDayReportDetailService {

    @Autowired
    ProduceDayReportDetailMapper produceDayReportDetailMapper;

    @Override
    public IPage<ProduceDayReportDetail> getProduceDayReportDetail(Page page, QueryWrapper queryWrapper) {
        return produceDayReportDetailMapper.getProduceDayReportDetail(page,queryWrapper);
    }

    @Override
    public List<ProduceDayReportDetail> getProduceDayReportDetail(QueryWrapper queryWrapper) {
        return produceDayReportDetailMapper.getProduceDayReportDetail(queryWrapper);
    }

    @Override
    public void saveDayReportDetail(ProduceDayReportDetail produceDayReportDetail) {
        produceDayReportDetailMapper.saveDayReportDetail(produceDayReportDetail);
    }

    @Override
    public List<DayReportDetailResultVo> statDayReportDetail(DayReportDetailConditionDto dayReportDetailConditionDto) {
        return produceDayReportDetailMapper.statDayReportDetail(dayReportDetailConditionDto);
    }
}
